package com.ohuang.wallpapermanager.storage.storage;

import android.content.Context
import com.google.gson.reflect.TypeToken

class SpStorageUtil(val context: Context, private val spName: String) {
    fun <T> get(key: String, default: T): SpStorage<T> {
        return SpStorage(
            context = context,
            spUtil = SPUtil.getInstance(spName),
            key = key,
            defaultValue = default
        )
    }
}

